package transferobject;

import java.io.Serializable;

/**
 * @author Ilya_Poliakov
 */
public class FullInfo implements Serializable {

	/**
	 * Serial version UID
	 */
	private static final long serialVersionUID = -1525648012177594976L;
	/**
	 * Bid with maximum value
	 */
	private Bid bid;

	/**
	 * Best bid owner
	 */
	private User bidder;

	/**
	 * Item
	 */
	private Item item;

	/**
	 * Item seller ID
	 */
	private User seller;

	/**
	 * Create new FullInfo
	 * @param seller
	 * @param item
	 * @param bid
	 * @param bidder
	 */
	public FullInfo(Item item, User seller, Bid bid, User bidder) {
		super();
		this.seller = seller;
		this.item = item;
		this.bid = bid;
		this.bidder = bidder;
	}

	/**
	 * return the bid
	 * @return the bid
	 */
	public Bid getBid() {
		return bid;
	}

	/**
	 * return the bid
	 * @return the bidder
	 */
	public User getBidder() {
		return bidder;
	}

	/**
	 * return the item
	 * @return the item
	 */
	public Item getItem() {
		return item;
	}

	/**
	 * return the seller
	 * @return the seller
	 */
	public User getSeller() {
		return seller;
	}

	/**
	 * set the bid
	 * @param bid the bid to set
	 */
	public void setBid(Bid bid) {
		this.bid = bid;
	}

	/**
	 * set the bidder
	 * @param bidder the bidder to set
	 */
	public void setBidder(User bidder) {
		this.bidder = bidder;
	}
	/**
	 * set the item
	 * @param item the item to set
	 */
	public void setItem(Item item) {
		this.item = item;
	}
	/**
	 * set the seller
	 * @param seller the seller to set
	 */
	public void setSeller(User seller) {
		this.seller = seller;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		return item.title;
	}

}
